package com.sun.module_home.impl

import androidx.compose.runtime.Composable
import androidx.compose.runtime.MutableState
import androidx.navigation.NavHostController
import com.google.auto.service.AutoService
import com.sun.module_base.model.AppThemeState
import com.sun.module_common.serviceinterface.main.HomeService
import com.sun.module_home.ui.HomeScreen

/**
 *@author:sunc
 *@time :2025/7/29 16:53
 *@desc: 描述
 */
@AutoService(HomeService::class)
class HomeServiceImpl : HomeService {

    override fun getService(
        navCtrl: NavHostController,
        appThemeState: MutableState<AppThemeState>
    ): @Composable (() -> Unit) {
        return { HomeScreen(appThemeState = appThemeState) }
    }

//    @Composable
//    override fun getHomeService(navCtrl: NavHostController) {
//        HomeScreen()
//    }
}